import styled from 'styled-components';

export const HomeWrap = styled.div`
    width: 960px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    margin-top: 20px;
    padding: 10px 0 50px 0;
`;

export const HomeLeft = styled.div`
    width: 640px;
    
    .banner{
        width: 640px;
        height: 270px;
        display: block;
        background: #f9f9f9;
        border-radius: 5px;
        cursor: pointer;
        overflow: hidden;
    }
`;

export const HomeRight = styled.div`
    width: 280px;
    float: right;
`;

export const TopicWrap = styled.div`
    margin-top: 25px;
    overflow: hidden;
    padding: 10px 0;
    height: 88px;
`;

export const TopicItem = styled.div`
    float: left;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    background: #f7f7f7;
    border: 1px solid #dcdcdc;
    cursor: pointer;
    padding-right: 10px;
    margin-right: 30px;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    
    
    .topic-pic{
        width: 32px;
        height: 32px;
        display: block;
        float: left;
        margin-right: 10px;
    }
`;

export const ListItem = styled.div`
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0 20px 0;
    margin-bottom: 15px;
    word-break: break-word;
    position: relative;
    width: 100%;
    
    .content{
        padding-right: 165px;
    }
    
    .list-pic{
        width: 150px;
        height: 100px;
        display: block;
        position: absolute;
        right: 0;
        
        img{
            width: 100%;
            height: 100%;
            display: block;
            border-radius: 4px;
        }
    }
`;

export const ListInfo = styled.div`
    a{
        color: #333;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.5;
        margin-bottom: 4px;
        display: block;
    }
    
    a:hover{
        text-decoration: underline;
    }
    
    p{
        font-size: 13px;
        line-height: 24px;
        color: #999;
        margin-bottom: 8px;
    }
`;

export const ListDesc = styled.div`
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    color: #b4b4b4;
    
    .iconfont{
        margin-right: 2px;
    }
    
    .mr-10{
        margin-right: 10px;
    }
    
    .diamond{
        color: #ea6f5a;
    }
    
    .nickname,
    .comment{
        color: #b4b4b4;
        cursor: pointer;
        transition: .6s;
    }
    
    .nickname:hover,
    .comment:hover{
        color: #787878;
        transition: .6s;
    }
    
`;

export const LoadMore = styled.div`
    width: 100%;
    height: 40px;
    border-radius: 20px;
    color: #fff;
    background: #a5a5a5;
    cursor: pointer;
    line-height: 40px;
    text-align: center;
    font-size: 15px;
    transition: .6s;
    user-select: none;
    
    &:hover{
        background: #777777;
        transition: .6s;
    }
`;

export const RecommendWrap = styled.div`
    width: 100%;
    min-height: 228px;
    margin-top: -4px;
    
    a{
        width: 100%;
        height: 50px;
        margin-bottom: 6px;
        display: block;
        border-radius: 4px;
        
        img{
            width: 100%;
            height: 100%;
            display: block;
        }
    }
`;

export const BackToTop = styled.div`
    width: 50px;
    height: 50px;
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 999;
    border: 1px solid #dcdcdc;
    cursor: pointer;
    text-align: center;
    line-height: 50px;
    
    &:hover{
        background-color: hsla(0,0%,71%,.1);
        transition: .1s ease-in;
    }
    
    .iconfont{
        font-size: 24px;
    }
`;

